using System.Collections.Generic;

using com.tc.zigbee.zcl;

using com.tc.util;
namespace com.tc.zigbee.zcl
{
    public class ReportConfig
    {
        List<ReporterConfigurationRecord> records = new List<ReporterConfigurationRecord>();

        public List<ReporterConfigurationRecord> getRecords()
        {
            return records;
        }

        public byte[] frame()
        {
            int l = 0;
            foreach (ReporterConfigurationRecord r in records)
                l += r.length();
            byte[] data = new byte[l];
            l = 0;
            foreach (ReporterConfigurationRecord r in records)
                l += r.fill(data, l);
            return data;
        }
    }
}
